package com.xch.util;

import com.xch.bean.User;

import javax.servlet.http.HttpSession;

public class UserUtil {

    public static String getUserName (HttpSession session){
        return (String)session.getAttribute("adminUserName");
    }
    public static String getUserPhone(HttpSession session){
        //Todo:还没有柜子端，未存储任何的录入人信息
        return "18888888888";
    }

    public static void setWxUser(HttpSession session, User user){
        session.setAttribute("wxUser",user);
    }
    public static User getWxUser(HttpSession session){
        return (User)session.getAttribute("wxUser");
    }

}
